public class test1 {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(2);//0
        myArrayList.add(3);//1
        myArrayList.add(4);//2
        myArrayList.display();
        myArrayList.add(5);//3
        myArrayList.display();
        System.out.println(myArrayList.capacity());
//        myArrayList.add(2,10);
//        myArrayList.display();
////        myArrayList.add(-1,20);
//        myArrayList.add(3,20);
//        myArrayList.display();
//        System.out.println(myArrayList.contains(10));
//        System.out.println(myArrayList.indexOf(2));
//        System.out.println(myArrayList.indexOf(20));
//        System.out.println(myArrayList.get(1));
//        myArrayList.remove(2);
//        myArrayList.display();
//        System.out.println(myArrayList.size());
//        myArrayList.clear();
//        myArrayList.display();

    }
}
